import request from '@/utils/request'
// 驱虫记录
export default {
  /**
 * @description: 获取投入类型管理类型树状图 *代表必填
 * @param {String/Number} page *
 * @param {String/Number} size *
 * @param {Object} entity {componyId: 1} *
 * @param {String} order 排序方式 ASC DESC 默认ASC
 * @param {String} sort 自定义排序方式 'createTime'
 * @return {Array}
 */
  // 添加
  // 添加
  add(params) {
    return request.post('/fish/base/equipment/add', params)
  },
  // 编号删除
  numberDel(params) {
    return request.get(`/fish/base/equipment/delByNo?no=${params}`)
  },
  // 编号批量删除
  numberBatchDel(params) {
    return request.post('/fish/base/equipment/delListByNo', params)
  },
  // 修改
  edit(params) {
    return request.post('/fish/base/equipment/edit', params)
  },
  // 条件查询
  conditionQuery(params) {
    return request.post('/fish/base/equipment/queryByCondition', params)
  },
  // 编号查询
  numberQuery(params) {
    return request.get(`/fish/base/equipment/queryByNo?no=${params}`)
  },
  // 编号批量查询
  numberBatchQuery(params) {
    return request.post('/fish/base/equipment/queryListByNo', params)
  },
  // 分页查询
  pageQuery(params) {
    return request.post('/fish/base/equipment/queryPageByCondition', params)
  },
  // 导出
  exportDate(params) {
    return request.post('/fish/base/equipment/exportData', params)
  },
  //设备项
  getDataItem(params) {
    return request.post('/iot/dataItem/queryByCondition', params)
  },
  // 设备历史数据
  historyDate(params) {
    return request.post('/iot/dataCollectAir/queryPageList', params)
  }
}
